package com.thzy.bbs.entity;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体
 *
 * @author Lirui
 * @date 2017/2/26 14:29
 */
@Table(name = "user")
public class User implements Serializable {
    @Column(name = "id", isId = true, autoGen = true, property = "NOT NULL")
    private int id;
    @Column(name = "user_name")
    private String userName;
    @Column(name = "last_time")
    private Date lastTime;

    public User() {
    }

    public User(String userName, Date lastTime) {
        this.userName = userName;
        this.lastTime = lastTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }
}
